package com.tt.aile.item.pojo.api;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 86176 shkstrat
 * @date 2020/11/17 - 21:23
 */
@RequestMapping("category")
public interface CategoryApi {

    @GetMapping
    public List<String> queryNamesByIds(@RequestParam("ids")List<Long> ids);

    @GetMapping("id/{id}")
    public String queryNameById(@PathVariable("id")Long id);
}
